package j.framework.qmd.core;

import java.util.Map;

/**
 * 查询操作上下文
 * User: jason
 * Date: 2014/12/31 9:03
 */
public class QueryActionContext {
    public final String actionId;

    public final  String actionName;

    public final  Map<String,Object> rowData; //定义的参数也含在内

    public QueryActionContext(String actionId, String actionName, Map<String, Object> rowData) {
        this.actionId = actionId;
        this.actionName = actionName;
        this.rowData = rowData;
    }

    public String getString(String key){
        Object obj = rowData.get(key);
        if(obj == null){
            return "";
        }
        return obj.toString();
    }
}
